#!/bin/sh

homedir=/home/david/wda/test003
/usr/bin/svn update $homedir

port=9003
ps -aux | grep $port | grep -v "grep" | awk '{print $2}' | while read line; do kill -9 $line; done
uwsgi -s 127.0.0.1:$port -p 10 -M -d /dev/null -l 10000 -limit-as 512 -t 30 --file $homedir/wsgi.py -callable application


exit 0

